//客户筛选管理CreateInfo.js  网格下的内容控件 ProjectSource.js

var ProjectSourceDemo = function(){
//	var ci = new CreateInfo();
	var thiz=this;
	var userSelector = null;
	var selectUserId = [];
	
	// 立项信息元素-----begin

	var customerID = new Ext.form.TextField({
		fieldLabel : '客户编号',
		width : 150,
		disabled:true
	});
	
	var customerName = new Ext.form.TextField({
		fieldLabel : '客户名称',
		width : 300,
		allowBlank : false
	});
		
	var customerArea = new Ext.form.ComboBox( {
		fieldLabel : '所属区域',
		store: OMS.AREA,
		mode : 'local',
		displayField : 'name',
		triggerAction : 'all',
		editable : false,
		valueField : 'id',
		typeAhead : true,
		width : 150,
		emptyText : '---请选择---',
		selectOnFocus : true
	});
	this.renderprojectType = function(value){
		return OMS.PROJECTTYPEOBJECT[value];
	};
	var projectType = new Ext.form.ComboBox( {
		fieldLabel : '客户类型',
		//hiddenName : 'type',
		store : OMS.PROJECTTYPE,
		mode : 'local',
		displayField : 'name',
		triggerAction : 'all',
		editable : false,
		valueField : 'id',
		typeAhead : true,
		width : 150,
		emptyText : '---请选择---',
		selectOnFocus : true,
		allowBlank : false
	});
	
	
	

	
	var SuccessTime = new Ext.form.DateField( {
		fieldLabel : '预计签约时间',
		format : 'Y-m-d',
		width : 150
	});
	
	var leader = new Ext.form.TextField({
		fieldLabel : '参与领导',
		width : 150,
		listeners: {
			   'render': function(cmp) {
					var self = cmp.ownerCt.ownerCt;
					
					cmp.getEl().on('click', function(){showUser1();}, self); 
				}
			}
	});
	
	var CustomerAddress = new Ext.form.TextField({
		fieldLabel : '公司地址',
		width : 300,
		allowBlank : false
	});
	
	
	
	var COMPANYSIZE = new Ext.form.ComboBox( {
		fieldLabel : '公司规模',
		store: OMS.COMPANYSIZE,
		mode : 'local',
		displayField : 'name',
		triggerAction : 'all',
		editable : false,
		valueField : 'id',
		typeAhead : true,
		width : 150,
		emptyText : '---请选择---',
		selectOnFocus : true
	});
	
	
	var FirstContact = new Ext.form.TextField({
		fieldLabel : '第1联系人名',
		width : 120,
		allowBlank : false
	});
	
	var CompanyPhone = new Ext.form.TextField({
		fieldLabel : '办公电话',
		width : 120,
		allowBlank : false
	});
	
	var Mobile = new Ext.form.TextField({
		fieldLabel : '手机',
		width : 120
	});
	
	var connEmail = new Ext.form.TextField({
		fieldLabel : 'EMAIL',
		width : 120,
		vtype : 'email'
	});
	
	var SecondContact = new Ext.form.TextField({
		fieldLabel : '第2联系人名',
		width : 120,
		allowBlank : false
	});
	
	var SecondMobile = new Ext.form.TextField({
		fieldLabel : '第2联系人电话',
		width : 120,
		allowBlank : false
	});
	
		var qq = new Ext.form.TextField({
		fieldLabel : 'qq',
		width : 120,
		allowBlank : false
	});
	
	var msn = new Ext.form.TextField({
		fieldLabel : 'msn',
		width : 120,
		allowBlank : false
	});
	var fax = new Ext.form.TextField({
		fieldLabel : 'fax',
		width : 120,
		allowBlank : false
	});
	var ContactLike = new Ext.form.TextField({
		fieldLabel : '爱好',
		width : 120,
		allowBlank : false
	});
	
	
	var Birthday = new Ext.form.DateField( {
		fieldLabel : '第1联系人生日',
		format : 'Y-m-d',
		width : 150
	});
	

	
	
	// 立项信息元素-----end
	
	this.projectInfo = new Ext.form.FieldSet({
		title : '基础信息',
		collapsible : true,
		autoHeight : true,
		width : 930,
		items : [{layout:'column',
					  defaults:{layout:'form'},
					  items:[{columnWidth:0.3,items:[customerID]},
					         {columnWidth:0.5,items:[customerName]}]},
				  {layout:'column',
					   defaults:{layout:'form',columnWidth:0.3},
					   items:[{items:[customerArea]},
							  {items:[leader]}]},
				  			  {xtype:'fieldset',title:'联系信息',collapsible:true,autoHeight:true,
								   items:[{layout:'column',
								   		  defaults:{layout:'form'},
										   items:[{columnWidth:0.5,items:[CustomerAddress]},
											      {columnWidth:0.5,items:[COMPANYSIZE]}
										   ]},
										{layout:'column',
											defaults:{layout:'form'},
											items:[{columnWidth:0.25,items:[FirstContact]},
													  {columnWidth:0.25,items:[CompanyPhone]},
													  {columnWidth:0.25,items:[Mobile]},
													  {columnWidth:0.25,items:[qq]},
													  {columnWidth:0.25,items:[msn]},
													  {columnWidth:0.25,items:[connEmail]},
													  {columnWidth:0.25,items:[fax]},
													  {columnWidth:0.25,items:[ContactLike]},//birthday
													  {columnWidth:0.3,items:[Birthday]},
													  {columnWidth:0.25,items:[SecondContact]},
													  {columnWidth:0.25,items:[SecondMobile]}
													 ]}
											]
							}
				]
	});

	
	var projectCustNeedItems = new Ext.form.CheckboxGroup({
	    xtype: 'checkboxgroup',
	    fieldLabel: '客户需求',
	    itemCls: 'x-check-group-alt',
	    columns: 4,
	    width : 500,
	    items: [
	        {boxLabel: '基础配套建设', name: 'cust4-1',value:'1'},
	        {boxLabel: '通信配套建设', name: 'cust4-2',value:'2'},
	        {boxLabel: '专线', name: 'cust4-3',value:'3'},
	        {boxLabel: '语音类', name: 'cust4-4',value:'4'}
	    ]
	});
	
	var projectOther = new Ext.form.TextField({
		fieldLabel : '其他',
		width : 120
	});
	
	var projectNeedServer = new Ext.form.TextArea({
		fieldLabel : '服务要求',
		width : 800
	});
	
	var projectNeedFunction = new Ext.form.TextArea({
		fieldLabel : '实现功能',
		width : 800
	});
	
	var projectNeedBus = new Ext.form.TextArea({
		fieldLabel : '业务提供',
		width : 800
	});
	
	var projectNeedSummary = new Ext.form.TextArea({
		fieldLabel : '备注',
		width : 800
	});
	
	// 需求信息元素----end
	
	this.projectNeed = new Ext.form.FieldSet({
		title : '需求信息',
		collapsible : true,
		autoHeight : true,
		width : 930,
		items : [
		         {layout:'column',
				  defaults:{layout:'form'},
				  items:[{columnWidth:0.75,items:[projectCustNeedItems]},
				         {columnWidth:0.25,items:[projectOther]}]
				  },projectNeedServer,projectNeedFunction,projectNeedBus,projectNeedSummary
		        ]
	});
	
	this.projectIsVs = new Ext.form.Checkbox({
		boxLabel: '是否有竞争对手',
		scope : this,
	    listeners : {
			scope : this,
			check : function(thiz,checked){
				if(checked)
					this.projectVsInfo.show();
				else
					this.projectVsInfo.hide();
			}
		}
	});
	
	// 竞争对手信息---begin
	var VsName = new Ext.form.TextField({
		fieldLabel : '竞争对手名称',
		width : 200
	});
	
	var VsManager = new Ext.form.TextField({
		fieldLabel : '项目负责人',
		width : 150
	});
	
	var VsTime = new Ext.form.DateField( {
		fieldLabel : '介入时间',
		format : 'Y-m-d',
		width : 150
	});
	
	var VsGood = new Ext.form.TextArea({
		fieldLabel : '优势',
		width : 250
	});
	
	var VsBad = new Ext.form.TextArea({
		fieldLabel : '劣势',
		width : 250
	});
	// 竞争对手信息---end
	
	this.projectVsInfo = new Ext.form.FieldSet({
		title : '竞争对手信息',
		collapsible : true,
		autoHeight : true,
		width : 930,
		items : [{layout:'column',
				  defaults:{layout:'form'},
				  items:[{columnWidth:0.4,items:[VsName]},
				  		 {columnWidth:0.3,items:[VsManager]},
				  		 {columnWidth:0.3,items:[VsTime]}
				  		]},
				 {layout:'column',
				  defaults:{layout:'form'},
				  items:[{columnWidth:0.5,items:[VsGood]},
						 {columnWidth:0.5,items:[VsBad]}
						]}]
	});
	
	this.projectVsInfo.hide();
	//为控件设置值
	this.setCompValue = function(data){
		//console.info(projectCustNeedItems);
		customerID.setValue(data.PROJECT_ID);
		customerName.setValue(data.PROJECT_NAME);
		customerArea.setValue(data.AREA_ID);
		projectType.setValue(data.PROJECT_TYPE);
		projectMoney.setValue(data.EST_AMT);
		projectCreateDate.setValue(data.PROJECT_CREATE_DT);
		SuccessTime.setValue(data.EST_DT);
		leader.setValue(data.JOIN_LEADER);
		CustomerAddress.setValue(data.CUSTOMER_NAME);
		COMPANYSIZE.setValue(data.STAFF_NUM);
		FirstContact.setValue(data.CONTACT_PERSON);
		CompanyPhone.setValue(data.OFF_TEL);
		Mobile.setValue(data.MOBILE);
		connEmail.setValue(data.EMIAL);
		
		projectNeedName.setValue(data.PROJECT_TARGET);
		var array=new Array();
		array=data.CUST_REQ.split(',');
		if(array.length>0){
			projectCustNeedItems.items.items[0].setValue(false);
			projectCustNeedItems.items.items[1].setValue(false);
			projectCustNeedItems.items.items[2].setValue(false);
			projectCustNeedItems.items.items[3].setValue(false);
			projectOther.setValue("");
			for(i=0;i<array.length;i++){
				var cus_req=array[i];
				if(cus_req!=null&cus_req != 'null'){
					if(cus_req == 1){
						projectCustNeedItems.items.items[0].setValue(true);
					}else
					if(cus_req == 2){
						projectCustNeedItems.items.items[1].setValue(true);
					}else
					if(cus_req == 3){
						projectCustNeedItems.items.items[2].setValue(true);
					}else
					if(cus_req == 4){
						projectCustNeedItems.items.items[3].setValue(true);
					}else{
						projectOther.setValue(data.CUST_REQ);
					}
				}
			}
		}
		projectNeedServer.setValue(data.SERVICE_REQ);
		projectNeedFunction.setValue(data.IMP_FUNC);
		projectNeedBus.setValue(data.OWNER_PROVIDE);
		projectNeedSummary.setValue(data.REMARK);
		
		//projectIsVs:projectIsVs.setValue(data.);
		VsName.setValue(data.COMPETITOR);
		VsManager.setValue(data.PROJECT_OWNER);
		VsTime.setValue(data.INVOLVE_DT);
		VsGood.setValue(data.ADVANTAGE);
		VsBad.setValue(data.DISADVANTAGE);
	};
	this.reset=function(){
		customerID.setValue(null);
		customerName.setValue(null);
		customerName.enable();
		customerArea.setValue(null);
		leader.setValue(null);
		CustomerAddress.setValue(null);
		COMPANYSIZE.setValue(null);
		FirstContact.setValue(null);
		CompanyPhone.setValue(null);
		Mobile.setValue(null);
		qq.setValue(null);
		msn.setValue(null);
		connEmail.setValue(null);
		fax.setValue(null);
		ContactLike.setValue(null);
		Birthday.setValue(null);
		SecondContact.setValue(null);
		SecondMobile.setValue(null);
		PhoneMoney.setValue(null);
		MailMoney.setValue(null);
		netMoney.setValue(null);
		SuccessTime.setValue(null);
		SALESTAGE.setValue(null);
		VsName.setValue(null);
		VsManager.setValue(null);
		VsTime.setValue(null);
		VsGood.setValue(null);
		VsBad.setValue(null);
	}
	
	
	//为控件设置值
	this.setCompValueAndDisabled = function(data){
		customerID.setValue(data.id);
		customerName.setValue(data.CustomerName);
		customerArea.setValue(data.Area);
		leader.setValue(data.Leader);
		CustomerAddress.setValue(data.CustomerAddress);
		COMPANYSIZE.setValue(data.CustomerSize);
		FirstContact.setValue(data.FirstContact);
		CompanyPhone.setValue(data.CompanyPhone);
		Mobile.setValue(data.Mobile);
		qq.setValue(data.QQ);
		msn.setValue(data.MSN);
		connEmail.setValue(data.Email);
		fax.setValue(data.Fax);
		ContactLike.setValue(data.ContactLike);
		Birthday.setValue(data.Birthday);
		SecondContact.setValue(data.SecondContact);
		SecondMobile.setValue(data.SecondMobile);
		PhoneMoney.setValue(data.PhoneMoney);
		MailMoney.setValue(data.MailMoney);
		netMoney.setValue(data.NetMoney);
		SuccessTime.setValue(data.SuccessTime);
		SALESTAGE.setValue(data.SALESTAGE);
		VsName.setValue(data.VsName);
		VsManager.setValue(data.VsManager);
		VsTime.setValue(data.VsTime);
		VsGood.setValue(data.VsGood);
		VsBad.setValue(data.VsBad);
		
		SALESTAGE.setValue(data.SaleStage);
		var f=SALESTAGE.getValue();
		//alert(f);
		if (f=='2'){
			SALESTAGE.disable();
			
		}
		if (f=='0'){
			SALESTAGE.enable();
			//return;
		}
		if (f=='1'){
			SALESTAGE.enable();
			//return;
		}
		customerID.disable();
		customerName.disable();
		
		
	};
	//取得控件里的值
		this.getSaleValue=function(){
			value=SALESTAGE.getValue();
			return value;
		}
		this.getProjectId= function(){
			value = customerID.getValue();
			return value;
		};
		this.getCustomerName= function(){
			value = customerName.getValue();
			return value;
		};
		this.getCustomerArea=function(){
			value = customerArea.getValue();
			return value;
		};
		this.getleader=function(){
			value = leader.getValue();
			return value;
		};
		this.getCustomerAddress=function(){
			value = CustomerAddress.getValue();
			return value;
		};
		
		this.getCOMPANYSIZE=function(){
			value = COMPANYSIZE.getValue();
			return value;
		};
		this.getFirstContact=function(){
			value = FirstContact.getValue();
			return value;
		};
		this.getCompanyPhone=function(){
			value = CompanyPhone.getValue();
			return value;
		};
		this.getMobile=function(){
			value = Mobile.getValue();
			return value;
		};
		this.getqq=function(){
			value = qq.getValue();
			return value;
		};
		this.getmsn=function(){
			value = msn.getValue();
			return value;
		};
		this.getconnEmail=function(){
			value = connEmail.getValue();
			return value;
		};
		this.getfax=function(){
			value = fax.getValue();
			return value;
		};
		this.getContactLike=function(){
			value = ContactLike.getValue();
			return value;
		};
		this.getBirthday=function(){
			value = Birthday.getValue()? Birthday.getValue().format('Y-m-d') : '';
			return value;
		};
		this.getSecondContact=function(){
			value = SecondContact.getValue();
			return value;
		};
		this.getSecondMobile=function(){
			value = SecondMobile.getValue();
			return value;
		};
		this.getPhoneMoney=function(){
			value = PhoneMoney.getValue();
			return value;
		};
		
		this.getMailMoney=function(){
			value = MailMoney.getValue();
			return value;
		};
		this.getnetMoney=function(){
			value = netMoney.getValue();
			return value;
		};
		this.getSuccessTime=function(){
			value = SuccessTime.getValue()? SuccessTime.getValue().format('Y-m-d') : '';
			return value;
		};
		this.getSALESTAGE=function(){
			value = SALESTAGE.getValue();
			return value;
		};
		this.getVsName=function(){
			value = VsName.getValue();
			return value;
		};
		this.getVsManager=function(){
			value = VsManager.getValue();
			return value;
		};
		this.getVsTime=function(){
			value = VsTime.getValue()? VsTime.getValue().format('Y-m-d') : '';
			return value;
		};
		this.getVsGood=function(){
			value = VsGood.getValue();
			return value;
		};
		this.getVsBad=function(){
			value = VsBad.getValue();
			return value;
		};

	
//	----------------------------------------------------
	//保存立项信息
	
	this.getCompValue = function(status){
		return {
			project_id:customerID.getValue(),
			customerName:customerName.getValue(),
			customerArea:customerArea.getValue(),
			projectType:projectType.getValue(),
			projectMoney:projectMoney.getValue(),
			projectCreateDate:projectCreateDate.getValue()?projectCreateDate.getValue().format('Y-m-d'):'',
			SuccessTime:SuccessTime.getValue()?SuccessTime.getValue().format('Y-m-d'):'',
			leader:leader.getValue(),
			CustomerAddress:CustomerAddress.getValue(),
			COMPANYSIZE:COMPANYSIZE.getValue(),
			FirstContact:FirstContact.getValue(),
			CompanyPhone:CompanyPhone.getValue(),
			Mobile:Mobile.getValue(),
			connEmail:connEmail.getValue(),
			
			projectNeedName:projectNeedName.getValue(),
			projectCustNeedItems:getCus_req(),
			projectOther:projectOther.getValue(),
			projectNeedServer:projectNeedServer.getValue(),
			projectNeedFunction:projectNeedFunction.getValue(),
			projectNeedBus:projectNeedBus.getValue(),
			projectNeedSummary:projectNeedSummary.getValue(),
			
			//projectIsVs:projectIsVs.getValue(),
			VsName:VsName.getValue(),
			VsManager:VsManager.getValue(),
			VsTime:VsTime.getValue()?VsTime.getValue().format('Y-m-d'):'',
			VsGood:VsGood.getValue(),
			VsBad:VsBad.getValue(),
			projectStatus:status
		};
	};
	var getCus_req = function(){
		var iptvalue1 = null;
		var iptvalue2 = null;
		var iptvalue3 = null;
		var iptvalue4 = null;
		var iptvalue = null;
		if(projectCustNeedItems.items.items[0].checked){
			iptvalue1=1;
		}
		if(projectCustNeedItems.items.items[1].checked){
			iptvalue2=2;
		}
		if(projectCustNeedItems.items.items[2].checked){
			iptvalue3=3;
		}
		if(projectCustNeedItems.items.items[3].checked){
			iptvalue4=4;
		}	
		iptvalue = iptvalue1+','+iptvalue2+','+iptvalue3+','+iptvalue4;
		if(iptvalue == 'null,null,null,null'){
			return null;
		}else{
			return iptvalue;
		}
	};
	var showUser1 = function(){
		//var scope=this;
		selectUserId = [129,3840,20151];
		
		if(userSelector==null){
			userSelector=new Tree.User(selectUserId,function(o){
				//scope.setUsers1(o);
				setUsers1(o);
			},null,'105');
		}
		userSelector.show();
	};

	var setUsers1 = function(o){
		//alert(Ext.util.JSON.encode(o));
		var names = [];
		selectUserId =[];
		for(var i=0;i<o.length;i++) {
			names.push(o[i].text);
			//alert(names.push(o[i].text)+"!!!");
			selectUserId.push(o[i].id);
		}
		leader.setValue(names.join(';'));
	};
	
	this.contectStore = new Ext.data.JsonStore(
			{
				url : '../contect/searchContect.form?timesnap=' + new Date().getTime(),
				root : 'result',
				fields : [ 'ContectID', 'ContectDepart', 'ContectGroup','ContectPerson', 'projectTopic',
						   'projectNewlast', 'projectDangerous','projectCreateDate', 'projectBus',
						   'BossAdvice','DepartmentAdvice'],
				listeners : {
					scope : this,
					beforeload : function(thiz) {
						thiz.baseParams = {
							customerID : customerID.getValue(),
							startContectDate:"",
							endContectDate:""
							
							};
					}
				}
			});
	
	//test
	
	var strackStore = new Ext.data.JsonStore(
			{
				url : '../contect/searchContect.form?timesnap=' + new Date().getTime(),
				baseParams: {projectId: '-1'},
				root : 'result',
				fields : [ 'PROJECT_ID', 'USER_ID', 'PROJECT_GROUP','LATEST_MESSAGE', 'DIFFICULT', 'NEXT_PLAN','CREATE_DT', 'FILE_PATH','USER_NAME'],
				listeners : {
					scope : this,
					beforeload : function(thiz) {
						thiz.baseParams = { projectId : project_id };
					}
				}
			});
	
	
	var contectGrid = new Ext.grid.GridPanel({
		width : 900,
		height : 160,
		store : this.contectStore,
		columns : [{header:'所属部门',width: 100,dataIndex:'ContectDepart'},
				   {header:'所属人',width: 100,dataIndex:'ContectPerson'},
		           {header:'联系主题',width: 100,dataIndex:'projectTopic'},
				   {header:'最新进展',width: 150,dataIndex:'projectNewlast'},
				   {header:'困难及难点',width: 150,dataIndex:'projectDangerous'},
		           {header:'部门意见',width: 150,dataIndex:'DepartmentAdvice'},
		           {header:'总经理意见',width: 250,dataIndex:'BossAdvice'}
		           ],
		bbar:new Ext.PagingToolbar({
		  		   pageSize: 5,
		           store: this.contectStore,
		           displayInfo: true,
		           displayMsg: '显示第 {0} 条到 {1} 条记录，一共 {2} 条',
		           emptyMsg: "没有记录..."
		          })
	});
	
	
	
	var projectBus = new Ext.form.TextArea({
		fieldLabel : '联系主题',
		width : 800
	});
	var projectCreateDate = new Ext.form.DateField( {
		fieldLabel : '联系日期',
		format : 'Y-m-d',
		width : 150
	});
	var projectNewlast = new Ext.form.TextArea({
		fieldLabel : '最新进展',
		width : 800
	});
	
	var projectDangerous = new Ext.form.TextArea({
		fieldLabel : '困难及支撑',
		width : 800
	});
	
	var addContect = new Ext.data.Connection({
		waitTitle : '系统提示',
		waitMsg : '数据提交中，请稍候...',
		url:'../contect/addContect.form?timesnap=' + new Date().getTime(),
		method:'post'
	});
	
	var btn_addConect = new Ext.Button({
		text : '添加联系记录',
		iconCls: 'icon-search',
		handler: function (){
			var cust = customerID.getValue();
			var scope=this;
				if(cust == ''){
					alert("请选择客户");
				}else{
					Utils.confirm2({
					msg:"是否增加联系信息？",
					width:220,
						fn:function(){
								Utils.request(addContect,{
									params:{
										projectContectDate:projectCreateDate.getValue()? projectCreateDate.getValue().format('Y-m-d') : '',
										projectTopic:projectBus.getValue(),
										projectNewlast:projectNewlast.getValue(),
										projectDangerous:projectDangerous.getValue(),
										customerID:customerID.getValue()	
									
									},
									success:function(data){
										Utils.info("保存成功","系统提示");
										//ci.searchContect();
										thiz.contectStore.load();
										}
								})	
							}
					
					})
				}
		}
	});
	
	
	
	this.test = new Ext.form.FieldSet({
		title : '跟踪信息',
		collapsible : true,
		autoHeight : true,
		width : 930,
		items : [contectGrid,
					{layout:'column',defaults:{layout:'form'},
						items:[	 
					 		{columnWidth:3,items:[projectCreateDate]},
					     	{columnWidth:3,items:[projectBus]},
					 		{columnWidth:3,items:[projectNewlast]},    
					  		{columnWidth:3,items:[projectDangerous]},
					  		{columnWidth:0.3,items:[btn_addConect]}]
				 }
		]
	});	
	
	
	var SALESTAGE = new Ext.form.ComboBox( {
		fieldLabel : '销售阶段',
		store: OMS.SALESTAGE,
		mode : 'local',
		displayField : 'name',
		triggerAction : 'all',
		editable : false,
		valueField : 'id',
		typeAhead : true,
		width : 150,
		emptyText : '---请选择---',
		selectOnFocus : true
	});
	
	var projectMoney = new Ext.form.NumberField({
		fieldLabel : '估算总金额',
		width : 150
	});
	
	var PhoneMoney = new Ext.form.NumberField({
		fieldLabel : '电话金额',
		width : 150,
		value:"0"
	});
	var MailMoney = new Ext.form.NumberField({
		fieldLabel : '邮箱金额',
		width : 150,
		value:"0"
	});
	var netMoney = new Ext.form.NumberField({
		fieldLabel : '网络金额',
		width : 150,
		value:"0"
	});
	
this.customerType = new Ext.form.FieldSet({
		title : '客户类型',
		collapsible : true,
		autoHeight : true,
		width : 930,
		items : [	
		{layout:'column',defaults:{layout:'form'},
			items:[
			{columnWidth:0.3,items:[PhoneMoney]},
			{columnWidth:0.3,items:[MailMoney]},
			{columnWidth:0.3,items:[netMoney]},
			{columnWidth:0.3,items:[projectMoney]},
			{columnWidth:0.3,items:[SuccessTime]},
			{columnWidth:0.3,items:[SALESTAGE]}
			]}]
	});	
		
	
};	
